.class Lcom/opongo/blogapp/activities/AbstractPostsListActivity$6;
.super Landroid/content/BroadcastReceiver;
.source "AbstractPostsListActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/opongo/blogapp/activities/AbstractPostsListActivity;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/opongo/blogapp/activities/AbstractPostsListActivity;


# direct methods
.method constructor <init>(Lcom/opongo/blogapp/activities/AbstractPostsListActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/opongo/blogapp/activities/AbstractPostsListActivity$6;->this$0:Lcom/opongo/blogapp/activities/AbstractPostsListActivity;

    .line 165
    invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V

    return-void
.end method


# virtual methods
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
    .locals 6
    .parameter "c"
    .parameter "i"

    .prologue
    .line 169
    invoke-virtual {p2}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v0

    .line 170
    .local v0, e:Landroid/os/Bundle;
    const-string v3, "POST_ID"

    invoke-virtual {v0, v3}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    invoke-static {v3}, Ljava/lang/Integer;->valueOf(Ljava/lang/String;)Ljava/lang/Integer;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/Integer;->intValue()I

    move-result v2

    .line 171
    .local v2, post_id:I
    sget-boolean v3, Lcom/opongo/blogapp/activities/AbstractPostsListActivity;->DEBUG:Z

    if-eqz v3, :cond_0

    .line 172
    invoke-static {}, Lcom/opongo/blogapp/activities/AbstractPostsListActivity;->access$2()Ljava/lang/String;

    move-result-object v3

    .line 173
    new-instance v4, Ljava/lang/StringBuilder;

    const-string v5, "POST comment open by ID: "

    invoke-direct {v4, v5}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    .line 172
    invoke-static {v3, v4}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 174
    :cond_0
    new-instance v1, Landroid/content/Intent;

    const-class v3, Lcom/opongo/blogapp/activities/CommentsListActivity;

    invoke-direct {v1, p1, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 175
    .local v1, intent:Landroid/content/Intent;
    const-string v3, "POSTID"

    invoke-virtual {v1, v3, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 176
    const-string v3, "TABLENAME"

    iget-object v4, p0, Lcom/opongo/blogapp/activities/AbstractPostsListActivity$6;->this$0:Lcom/opongo/blogapp/activities/AbstractPostsListActivity;

    iget-object v4, v4, Lcom/opongo/blogapp/activities/AbstractPostsListActivity;->dbManager:Lcom/opongo/blogapp/manager/DatabaseManager;

    invoke-virtual {v4}, Lcom/opongo/blogapp/manager/DatabaseManager;->getTableName()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v1, v3, v4}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 177
    iget-object v3, p0, Lcom/opongo/blogapp/activities/AbstractPostsListActivity$6;->this$0:Lcom/opongo/blogapp/activities/AbstractPostsListActivity;

    invoke-virtual {v3, v1}, Lcom/opongo/blogapp/activities/AbstractPostsListActivity;->startActivity(Landroid/content/Intent;)V

    .line 178
    return-void
.end method
